﻿@{
    ViewBag.Title = "Wiadomość :: Nowa";
}

<h2>Nowa wiadomość</h2>

<form action="Create" method="post">
    <table width="100%">
        <tr>
            <th>Tytuł:<br />@Html.TextBox("newsTitle", null, new { @style = "width: 300px;" })</th>
            <th>Kategoria:<br />@Html.DropDownList("newsCategory", (IEnumerable<SelectListItem>)ViewBag.categories)</th>
            <th>@DateTime.Now</th>
        </tr>
        <tr>
            <td colspan="3">Treść:<br />@Html.TextArea("newsContent", null, new { @style = "width: 100%" })</td>
        </tr>
        <tr>
            <td><input type="submit" value="Zapisz" /> &nbsp; @Html.ActionLink("Anuluj", "Index")</td>
        </tr>
    </table>
</form>